<style>
    .biaoti {
        /*border-bottom: 1px solid #ccc;*/
        padding: 10px;
        box-sizing: border-box;
        background: #e3eced;
        display: flex;
        align-items: center;
        font-size: 16px;
        color: #666;margin-bottom: 20px;
    }

    .biaoti .xian {
        width: 8px;
        height: 20px;
        background: #18bc9c;
        margin-right: 10px;
    }
    .kk{
        width:49%;
        background: #fff;
    }
    body{
        background:#f2f2f2!important;
    }
    .is-dialog #main{
        background:#f2f2f2!important;
    }
    .tabs{
        background: #fff;
        margin-top: 20px;
    }
    .tabs-content{
        display: flex;
        flex-direction: column-reverse;
        padding-top: 20px;
        width: 95%;
        margin: auto;
    }
    .tabs-content > .tab {
        display: none;
    }

    .tabs-content > div.active {
        display: block;
    }
    .tabs-content .tab .left{
        width: 25%;
        float: left;
    }
    .tabs-content .tab .right{
        width: 25%;
        float: left;
    }
    .tabs-content .tab .zhong{
        width: 25%;
        float: left;
    }
    .tabs .col-sm-2{
        width: 100%;
        text-align: left;
    }
    .tab-label{
        width: 140px;
        text-align: center;
        cursor: pointer;
        height: 30px;
        line-height: 30px;
        margin: 0;
    }
    .tab-label.active{
        background: #1E9FFF;
        color: #fff;
    }
    .tab-labels{
        /*padding: 10px;*/
        box-sizing: border-box;
        background: #e3eced;
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
    }
    .tab-labels .xian {
        width: 8px;
        height: 20px;
        background: #18bc9c;
        margin-right: 10px;
        margin-left: 10px;
    }
    .tcxm-td td{
        background: #3683D3;
        color: #fff;
        text-align: center;
        border-right: 1px solid;
    }

    .form-inline input{
        width: 100%!important;
    }
    .form-inline td:nth-child(2) input{
        width: 12%!important;
    }
    .form-inline td{
        border-right: 1px solid #e6e6e6;
        border-bottom: 1px solid #e6e6e6;
    }
    .form-inline td:nth-child(1){
        border-left: 1px solid #e6e6e6;
    }
    .form-inline td:nth-child(2){
        text-align: center;
    }

</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="id" value="{$row.id}">
    <input type="hidden" name="tong_number" value="{$row.tong_number}">
    <input type="hidden" name="row[kehu_sumdiscount]" value="{$row.kehu_sumdiscount}">
    <input type="hidden" name="row[yw_peo]" value="{$row.yw_peo}">
    <input type="hidden" name="row[yw_peo_phone]" value="{$row.yw_peo_phone}">
    <div style="display: flex;width:100%;justify-content: space-between">
        <div class="kk">
            <div class="biaoti">
                <div class="xian"></div>
                车主信息
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('车主姓名')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-car_owner" class="form-control" name="row[car_owner]" type="text" value="{$row.car_owner}" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('证件类型')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <select name="row[car_card_kind]" id="c-car_card_kind" class="form-control">
                        <option value="0"  <?php if($row['car_card_kind']=="0"){?> selected<?php }?>>身份证</option>
                        <option value="1"  <?php if($row['car_card_kind']=="1"){?> selected<?php }?>>统一社会信用代码</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('证件号')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-car_card" class="form-control" name="row[car_card]" type="text" value="{$row.car_card}" data-rule="required">
                </div>
            </div>


        </div>
        <div class="kk">
            <div class="biaoti">
                <div class="xian"></div>
                被服务人（付款人）
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('姓名')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-learned_name" class="form-control" name="row[learned_name]" type="text" value="{$row.learned_name}" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('证件类型')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <select name="row[learned_kind]" id="c-learned_kind" class="form-control">
                        <option value="0" <?php if($row['learned_kind']=="0"){?> selected<?php }?>>身份证</option>
                        <option value="1" <?php if($row['learned_kind']=="1"){?> selected<?php }?>>统一社会信用代码</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('证件号')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-learned_num" class="form-control" name="row[learned_num]" type="text" value="{$row.learned_num}" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('手机')}<span style="color:red">*</span>:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-learned_phone" class="form-control" name="row[learned_phone]" type="text" value="{$row.learned_phone}" data-rule="required">
                </div>
            </div>
            <!--            <div class="form-group layer-footer">-->
            <!--                <label class="control-label col-xs-12 col-sm-2"></label>-->
            <!--                <div class="col-xs-12 col-sm-8">-->
            <!--                    <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>-->
            <!--                </div>-->
            <!--            </div>-->
        </div>
    </div>

    <div class="tabs">
        <div class="tab-labels">
            <div class="xian"></div>
            <label class="tab-label active" for="tab1">车辆信息</label>
            <label class="tab-label" for="tab2">服务项目</label>
            <label class="tab-label" for="tab3">特约及争议解决方式</label>
            <label class="tab-label" for="tab4">影像资料</label>
        </div>
        <div class="tabs-content">
            <div id="tab1" class="tab active">
                <input type="hidden" id="c-car_leixing" name="row[car_leixing]" value="{$row.car_leixing}">
                <input type="hidden" name="row[main_sumdiscount]" id="addz" value="{$row.main_sumdiscount}" readonly=""/>
                <input type="hidden" name="row[car_lastyear]" id="car_lastyear" value="{$row.car_lastyear}" readonly=""/>
                <input type="hidden" name="row[haocolor]" id="haocolor" value="{$row.haocolor}" readonly=""/>

                <div class="left">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Plan_strattime')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-plan_strattime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[plan_strattime]" type="text" value="{:date('Y-m-d H:i:s', $row['plan_strattime'])}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Yw_come')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            {:build_select('row[yw_come]', $jigoudata, $row.yw_come, ['class'=>'form-control', 'required'=>''])}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_num')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_num" class="form-control" name="row[car_num]" type="text" value="{$row.car_num}">
                            <!--                            <input type="checkbox" style="width: 20px;height: 20px;margin:5px;"-->
                            <!--                                   name="row[car_is_new]" value="{$row.car_is_new}" id="isnew" >-->
                            <!--                            <font style="line-height: 30px;">新车</font>-->
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_register')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_register" class="form-control" name="row[car_register]" type="text" value="{$row.car_register}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_use_nature')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select name="row[car_use_nature]" id="c-car_use_nature" class="form-control">
                                <?php foreach($xingzhi as $k => $v){?>

                                <option value="{$v}" <?php if($row['car_use_nature']== $v){?> selected<?php }?>>{$k}</option>

                                <?php }?>
<!--                                <option value="1" <?php if($row['car_use_nature']=="1"){?> selected<?php }?>>营运</option>-->
                                <!-- <option value="7">营业客运</option> -->
                                <!--<option value="6">营业租赁</option>-->
<!--                                <option value="10" <?php if($row['car_use_nature']=="10"){?> selected<?php }?>>非营运</option>-->
                                <!--<option value="8">家庭自用车</option> -->
                                <!--<option value="2">特种车一</option>-->
                                <!--<option value="3">特种车二</option>-->
                                <!--<option value="4">特种车三</option>-->
<!--                                <option value="5" <?php if($row['car_use_nature']=="5"){?> selected<?php }?>>预约出租客运</option>-->
                                <!--<option value="11">出租营运</option>-->
                                <!--<option value="12">出租租赁</option>-->
                                <!--<option value="13">营运货车</option>-->
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_carry_peo')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_carry_peo" class="form-control" name="row[car_carry_peo]" type="number" value="{$row.car_carry_peo}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_curb_weight')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_curb_weight" class="form-control" name="row[car_curb_weight]" type="text" value="{$row.car_curb_weight}">
                        </div>
                    </div>

                </div>
                <div class="zhong">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Plan_endtime')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-plan_endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[plan_endtime]" type="text" value="{:date('Y-m-d H:i:s', $row['plan_endtime'])}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Yw_class')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select name="row[yw_class]" id="yw_class" class="form-control">
                                <?php foreach($selectMenu as $k => $v){?>

                                <option value="{$v.id}" {if condition="$row.yw_class eq $v.id"}selected{else/}''{/if}>{$v.name}</option>

                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_vin')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_vin" class="form-control" name="row[car_vin]" type="text" value="{$row.car_vin}">
                            <!--                            <div id="che_sou" style="position:absolute;right:22px;top:6px;">搜索</div>-->
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Chexing')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select name="row[chexing]" id="c-chexing"  class="form-control">
                                <?php foreach($chexing as $k => $v){?>

                                <option value="{$v}" <?php if($row['chexing']== $v){?> selected<?php }?>>{$k}</option>

                                <?php }?>
<!--                                <option value="">请选择车辆类型</option>-->
<!--                                <option value="货车" <?php if($row['chexing']=="货车"){?> selected<?php }?>>2吨以上货车</option>-->
<!--                                <option value="挂车" <?php if($row['chexing']=="挂车"){?> selected<?php }?>>挂车</option>-->
                                <!--<option value="二吨至五吨货车">二吨至五吨货车</option>-->
                                <!--<option value="五吨至十吨货车">五吨至十吨货车</option>-->
                                <!--<option value="十吨以上货车">十吨以上货车</option>-->

<!--                                <option value="自卸车" <?php if($row['chexing']=="自卸车"){?> selected<?php }?>>自卸车</option>-->
<!--                                <option value="特二" <?php if($row['chexing']=="特二"){?> selected<?php }?>>特二</option>-->
<!--                                <option value="2吨以下"  <?php if($row['chexing']=="2吨以下"){?> selected<?php }?>>2吨以下货车</option>-->
<!--                                <option value="网约车"  <?php if($row['chexing']=="网约车"){?> selected<?php }?>>网约或出租</option>-->
<!--                                <option value="预约出租客运" <?php if($row['chexing']=="预约出租客运"){?> selected<?php }?> >预约出租客运</option>-->

                                <!--<option value="家庭自用车" >私家车</option>-->
<!--                                <option value="6座以下"  <?php if($row['chexing']=="6座以下"){?> selected<?php }?>>6座以下(私家车)</option>-->
<!--                                <option value="6-10座"  <?php if($row['chexing']=="6-10座"){?> selected<?php }?>>6-10座(私家车)</option>-->

                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_carry_quality')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_carry_quality" class="form-control" name="row[car_carry_quality]" type="text" value="{$row.car_carry_quality}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_reall')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_reall" class="form-control" name="row[car_reall]" type="text" value="{$row.car_reall}">
                        </div>
                    </div>
                </div>
                <div class="right">
                    <div class="form-group" style="height: 62px;padding-top: 25px;">
                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;">服务天数:</label>
                        <div class="col-xs-12 col-sm-8" style="margin-top: 7px;padding-left: 0;" id="datecount">
                            365天
                        </div>
                    </div>
                    <!--                    <div class="form-group" style="height: 62px;">-->
                    <!--                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;"></label>-->
                    <!--                        <div class="col-xs-12 col-sm-10" style="margin-top: 7px;padding-left: 0;">-->

                    <!--                        </div>-->
                    <!--                    </div>-->
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Yw_belonger')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-yw_belonger" class="form-control" name="row[yw_belonger]" type="text" value="{$row.yw_belonger}" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_engine')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_engine" class="form-control" name="row[car_engine]" type="text" value="{$row.car_engine}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Chexing_ci')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select name="row[chexing_ci]" id="ncd"  class="form-control">
                            </select>

                            <input type="hidden" name='row[ncd]' id="chexing_ci"  value="{$row.ncd}">
                            <input type="hidden" name='row[feiyong]' id="feiyong"  value="{$row.feiyong}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_buy')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_buy" class="form-control" name="row[car_buy]" type="text" value="{$row.car_buy}">
                        </div>
                    </div>
                </div>
                <div class="right">
                    <div class="form-group" style="height: 62px;">
                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;"></label>
                        <div class="col-xs-12 col-sm-10" style="margin-top: 7px;padding-left: 0;">

                        </div>
                    </div>
                    <div class="form-group" style="height: 62px;">
                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;"></label>
                        <div class="col-xs-12 col-sm-10" style="margin-top: 7px;padding-left: 0;">

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_factory_num')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_factory_num" class="form-control" name="row[car_factory_num]" type="text" value="{$row.car_factory_num}">
                            <!--                            <div id="chang_sou" style="position:absolute;right:22px;top:6px;">搜索</div>-->
                        </div>
                    </div>
                </div>
            </div>
            <div id="tab2" class="tab">
                <div class="form-group row">
                    <!--                    <label class="control-label col-xs-12">{:__('Fieldlist二维数组示例')}:</label>-->
                    <div class="col-xs-12">
                        <table class="table fieldlist" data-template="basictpl" data-name="row[basic]" id="first-table">
                            <tr class="tcxm-td">
                                                                <td><input type="checkbox" name="" id="checks"></td>
                                <td>{:__('主服务项目')}</td>
                                <td>{:__('服务金额')}</td>
                                <td>{:__('不计免赔')}</td>
                                <td>{:__('标准服务费')}</td>
                                <td>{:__('折扣(%)')}</td>
                                <td>{:__('应缴服务费')}</td>
                                <!--                                <td width="100"></td>-->
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <td style="text-align: center">
                                    <input type="checkbox" name="row[main_name]" id="main_name" value="{$row.main_name}" class="chk" <?= $row['main_name'] ==1? ' checked="checked"' : '';?> disabled>
                                </td>
                                <td>机动车损失服务</td>
                                <td><input type="text" name="row[main_money]" id="main_money" class="form-control" size="15" value="{$row.main_money}" placeholder="" readonly/></td>
                                <td style="text-align: center">
                                    <input type="checkbox" value="{$row.main_franchise}" name="row[main_franchise]" id="main_franchise" disabled>
                                </td>
                                <td><input type="text" name="row[main_standard]" id="main_standard" class="form-control zongshu" value="{$row.main_standard}" readonly/></td>
                                <td><input type="text" name="row[main_discount]" id="sun" class="form-control"  value="{$row.main_discount}" readonly /></td>
                                <td><input type="text" name="row[main_submit]" id="main_submit" class="form-control zong_tongchou" value="{$row.main_submit}" readonly/></td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                                                <td style="text-align: center">
                                                                    <input type="checkbox" name="row[main_disan]" id="main_disan" value="{$row.main_disan}" class="chk" <?= $row['main_disan'] ==1? ' checked="checked"' : '';?> disabled>
                                                                </td>
                                <td>机动车第三者责任服务</td>
                                <td>
                                    <input type="text" class="form-control" name="row[main_santong]"  value="{$row.main_santong}" readonly="readonly" id="main_santong">
                                </td>
                                <td style="text-align: center">
                                    <input type="checkbox" value="{$row.main_ji}" name="row[main_ji]" id="main_ji" disabled/>
                                </td>
                                <td><input type="text" name="row[main_biao]" id="main_biao" class="form-control zongshu" value="{$row.main_biao}"/></td>
                                <td><input type="text" name="row[main_zhe]" id="san" class="form-control"  value="{$row.main_zhe}" readonly/></td>
                                <td><input type="text" name="row[main_yingjiao]" id="main_yingjiao" class="form-control zong_tongchou" value="{$row.main_yingjiao}" readonly/></td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <td style="text-align: center">
                                    <input type="checkbox" name="row[siji]" id="si_jis" value="{$row.siji}" class="chk" <?= $row['siji'] ==1? ' checked="checked"' : '';?> disabled>
                                </td>
                                <td>车上人员责任服务(司机)<input type="text" class="form-control" value="1" style="text-align: center" disabled/></td>
                                <td>
                                    <input type="text" class="form-control" name="row[siji_tong]"  value="{$row.siji_tong}" readonly="readonly" id="siji_tong">
                                </td>
                                <td style="text-align: center">
                                    <input type="checkbox" value="{$row.siji_ji}" name="row[siji_ji]" id="siji_ji" disabled/>
                                </td>
                                <td><input type="text" name="row[siji_biao]" id="siji_biao" class="form-control zongshu" value="{$row.siji_biao}"/></td>
                                <td><input type="text" name="row[siji_zhe]" id="siji" class="form-control"  value="{$row.siji_zhe}" readonly/></td>
                                <td><input type="text" name="row[siji_ying]" id="siji_ying" class="form-control zong_tongchou" value="{$row.siji_ying}" readonly/></td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                                                <td style="text-align: center">
                                                                    <input type="checkbox" name="row[chengke]" id="chengkess" value="{$row.chengke}" class="chk" <?= $row['chengke'] ==1? ' checked="checked"' : '';?> disabled>
                                                                </td>
                                <td>车上人员责任服务(乘客)<input type="text" name="row[chengke_zuo]" id="zuo" class="form-control" size="15" value="{$row.chengke_zuo}" style="text-align: center" readonly/>座</td>
                                <td>
                                    <input type="hidden" name="row[ck_tong]" id="ck_tong" value="{$row.ck_tong}" readonly="readonly"
                                           style="width: 100%;height: 100%;border: none;margin: 0;">
                                    <input type="text" class="form-control" name="row[ck_money]"  value="{$row.ck_money}" readonly="readonly" id="ck">
                                </td>
                                <td style="text-align: center">
                                    <input type="checkbox" name="row[ck_ji]" id="ck_ji" value="{$row.ck_ji}" disabled/>
                                </td>
                                <td><input type="text" name="row[ck_biao]" id="ck_biao" class="form-control zongshu" value="{$row.ck_biao}"/></td>
                                <td><input type="text" name="row[ck_zhe]" id="cheng" class="form-control"  value="{$row.ck_zhe}" readonly/></td>
                                <td><input type="text" name="row[ck_ying]" id="ck_ying" class="form-control zong_tongchou" value="{$row.ck_ying}" readonly/></td>
                            </tr>
                            <tr class="tcxm-td">
                                                                <td>	<input type="checkbox" lay-filter="checkall" name="" id="checkss"></td>
                                <td>{:__('附加服务项目')}</td>
                                <td>{:__('服务金额')}</td>
                                <td>{:__('不计免赔')}</td>
                                <td>{:__('标准服务费')}</td>
                                <td>{:__('折扣(%)')}</td>
                                <td>{:__('应缴服务费')}</td>
                                <!--                                <td width="100"></td>-->
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                                                <td style="text-align: center">
                                                                    <input type="checkbox" name="row[dao_name]" id="dao_name" value="{$row.dao_name}" class="chks" <?= $row['dao_name'] ==1? ' checked="checked"' : '';?> disabled>
                                                                </td>
                                <td>三者医保外用药</td>
                                <td>
                                    <input type="text" class="form-control" name="row[dao_tong]"  value="{$row.dao_tong}" readonly="readonly" id="dao_tong">
                                </td>
                                <td style="text-align: center">
                                    <input type="checkbox" value="{$row.dao_ji}" name="row[dao_ji]" id="dao_ji" disabled/>
                                </td>
                                <td><input type="text" name="row[dao_biao]" id="dao_biao" class="form-control zongshu" value="{$row.dao_biao}"  readonly/></td>
                                <td><input type="text" name="row[dao_zhe]" id="dao" class="form-control"  value="100" readonly/></td>
                                <td><input type="text" name="row[dao_ying]" id="dao_ying" class="form-control zong_tongchou" value="{$row.dao_ying}" readonly/></td>
                            </tr>
                            <tr class="form-inline">
                                <td style="text-align: center">
                                    <input type="checkbox" name="row[dianwang]" value="{$row.dianwang}" id="dianwangs" class="chks" <?= $row['dianwang'] ==1? ' checked="checked"' : '';?> disabled>
                                </td>
                                <td>附加外部电网故障损失险</td>
                                <td><input type="text" name="row[dw_tong]" id="dw_tong" class="form-control" size="15" value="{$row.dw_tong}" placeholder=""  readonly/></td>
                                <td style="text-align: center">
                                    <input type="checkbox" name="row[dw_ji]" id="dw_ji" value="{$row.dw_ji}" disabled/>
                                </td>
                                <td><input type="text" name="row[dw_biao]" id="dw_biao" class="form-control zongshu" value="{$row.dw_biao}"  readonly/></td>
                                <td><input type="text" name="row[dw_zhe]" id="dw" class="form-control"  value="100" readonly/></td>
                                <td><input type="text" name="row[dw_ying]" id="dw_ying" class="form-control zong_tongchou" value="{$row.dw_ying}" readonly/></td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group">
                    <div class="left">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('交强')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text" class="form-control" placeholder="请输入交强" name="row[jq_price]" id="jq_price" oninput="vs()" onpropertychange="vs()" value="{$row.jq_price}">
                            </div>
                        </div>
                    </div>
                    <div class="zhong">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('车船税')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text" class="form-control" placeholder="请输入车船税" name="row[cc_price]" id="cc_price" oninput="vs()" onpropertychange="vs()" value="{$row.cc_price}">
                            </div>
                        </div>
                    </div>
                    <div class="right">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('标准服务费（合计）')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text" class="form-control"  placeholder="请输入标准服务费（合计）" name="row[main_sum]" id="main_sum" oninput="vs()" onpropertychange="vs()" value="{$row.main_sum}" readonly="readonly">
                            </div>
                        </div>
                    </div>
                    <div class="right">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('服务费（合计）')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text" class="form-control"  placeholder="请输入服务费（合计）" name="row[main_free]" id="main_free" oninput="vs()" onpropertychange="vs()" value="{$row.main_free}" readonly="readonly">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="tab3" class="tab">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2" style="width: 110px;">{:__('争议解决方')}:</label>
                    <div class="col-xs-12 col-sm-8" style="top: 7px;left: 0">
                        <input type="radio" name="row[resolvent]" value="{$row.resolvent}"  <?= $row['resolvent'] == 1 ? ' checked="checked"' : '';?>/> 诉讼
                        <input type="radio" name="row[resolvent]" value="{$row.resolvent}"  <?= $row['resolvent'] == 2 ? ' checked="checked"' : '';?>/>仲裁
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('特别约定')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <textarea name="row[special]" rows="5" cols="10" id="txt" value="" readonly="" class="form-control" style="background: #fff;">{$row.special}</textarea>
                    </div>
                </div>
            </div>
            <div id="tab4" class="tab" style="min-height: 300px;">
                <?php foreach($file as $k => $v){?>
                <img src="{$v.url}"  data-magnify="gallery" data-src="{$v.url}" width="100px">
                <?php }?>

            </div>
        </div>
    </div>

    <style>
        .shenhe{
            background-color: #fff;
            margin-top: 20px;
            height: 100%;
            margin-bottom: 100px;
        }
        .shenhe-content{
            display: flex;
            flex-direction: column-reverse;
            /*padding-top: 20px;*/
            width: 100%;
            margin: auto;
        }
        .shenhe-content .fieldlist{
            width: 98%;
            margin: auto;
        }
        .shenhe-td td{
            /*background: #3683D3;*/
            background: #f2f2f2;
            color: #000;
            text-align: left;
            border-right: 1px solid #e6e6e6;
        }
        .shenhe-td td:nth-child(1){
            width: 200px;
            border-left: 1px solid #e6e6e6;
        }
        .shenhe-td td:nth-child(2){
            width: 150px;
        }
        .shenhe-inline td{
            border-right: 1px solid #e6e6e6;
            border-bottom: 1px solid #e6e6e6;
        }
        .shenhe-inline td:nth-child(1){
            border-left: 1px solid #e6e6e6;
        }
        .shenhe-inline td:nth-child(1){
            text-align: left;
        }
    </style>
    <div class="shenhe">
        <div class="biaoti">
            <div class="xian"></div>
            审核情况
        </div>
        <div class="shenhe-content">
            <table class="table fieldlist" data-template="basictpl" data-name="row[basic]" id="">
                <tr class="shenhe-td">
                    <td>{:__('审核时间')}</td>
                    <td>{:__('审核人')}</td>
                    <td>{:__('审核意见')}</td>
                </tr>
                {volist name='yijian' id='vo'}
                    <tr class="shenhe-inline">
                        <td>{$vo.shen_time|date='Y-m-d H:i:s',###}</td>
                        <td>{$vo.shen_peo}</td>
                        <td>{$vo.shen_yijian}</td>
                    </tr>
                {/volist}
                <tr class="shenhe-inline">
                    <td><input type="text" class="form-control" readonly name="shenhe_time" value="<?php echo date('Y-m-d H:i:s',time());?>"></td>
                    <td><input type="text" class="form-control" readonly name="shenhe_peo"  value="{$admin.username}"></td>
                    <td><input type="text" class="form-control" id="shenhe_yijian"  name="shenhe_yijian"  style="width:500px;"></td>
                </tr>
                <div class="form-group " style="margin-top: 50px;">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8" style="text-align: center;margin: auto;">
                        <button type="button" class="btn btn-primary btn-embossed " onclick="zancun()">{:__('退回修改')}</button>
                        <button type="button" class="btn btn-primary btn-embossed " style="margin-left: 10px;" onclick="ajaxPost()">{:__('通过审核')}</button>
                    </div>
                </div>
            </table>
            <div class="modal fade" id="myModal_shenhe" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <!--通过审核弹窗-->
                <div class="modal-dialog" style="width:600px!important;">
                    <div class="modal-content" >
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                缴费类型
                            </h4>
                        </div>
                        <div class="modal-body">
                            <div style="display:flex;margin:30px 0">
                                <label class="danxuan">支付方式：</label>
                            </div>
<!--                            <div style="display:flex;margin:30px 0">-->
<!--                                <label class="danxuan"><input  type="radio" name="shenhe_radio" value="1" /><span style="padding-left:10px">票面全费</span></label>-->
<!--                                <label class="danxuan"><input  type="radio" name="shenhe_radio" value="2" /><span style="padding-left:10px">净费</span></label>-->
<!--                                <label class="danxuan"><input  type="radio" name="shenhe_radio" value="3" /><span style="padding-left:10px">其他</span></label>-->
<!--                            </div>-->
<!--                            <div class="list" id="quanfei" style="margin-bottom:30px">-->
<!--                                <div class="list_name" >费用:{$row.main_free}</div>-->
<!--                            </div>-->
<!--                            <div class="list" id="jingfei" style="margin-bottom:30px">-->
<!--                                <div class="list_name" style="">费用:{$row.main_freess}</div>-->
<!--                            </div>-->
<!--                            <div id="qita-fei">-->
<!--                                <div class="list" style="display: flex;margin-bottom: 30px;align-items:center" >-->
<!--                                    <div class="list_name" style="text-align: right;margin-right: 10px;">其他费用</div>-->
<!--                                    <input type="text"  id="feiyong_qita" value="">-->
<!--                                </div>-->
<!--                            </div>-->
                            <div style="display:flex;margin:30px 0">
                                <label class="danxuan"><input  type="radio" name="shenhe_radio" value="1" /><span style="padding-left:10px">对公</span></label>
                                <label class="danxuan"><input  type="radio" name="shenhe_radio" value="2" /><span style="padding-left:10px">其他</span></label>
                            </div>
                            <div id="qita-fei">
                                <div class="list" style="display: flex;margin-bottom: 30px;align-items:center" >
                                    <div class="list_name" style="text-align: right;margin-right: 10px;">其他支付方式</div>
                                    <input type="text"  id="feiyong_qita" value="" class="form-control">
                                </div>
                            </div>
                            <div style="width: 100%;display: flex;">
                                <label class="">{:__('缴费信息')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="input-group">
                                        <input id="c-img" class="form-control" size="50" name="file" type="text">
                                        <div class="input-group-addon no-border no-padding">
                                            <span><button type="button" id="faupload-img" class="btn btn-danger faupload" data-input-id="c-img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            <span><button type="button" id="fachoose-img" class="btn btn-primary fachoose" data-input-id="c-img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                        </div>
                                        <span class="msg-box n-right" for="c-img"></span>
                                    </div>
                                    <ul class="row list-inline faupload-preview" id="p-img"></ul>
                                </div>
                            </div>

                            <div class="modal-footer" style="background:transparent">
                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="shenhe_tijiao()">
                                    提交数据
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<style type="text/css" >
    .danxuan{
        margin-right: 20px;
    }
    #quanfei,#jingfei,#qita-fei{
        display: none;
    }

</style>

<script src="/assets/libs/jquery/dist/jquery.js"></script>
<script>
    $(document).ready(function() {
        $('.tab-label').click(function() {
            // 移除所有标签的激活状态和内容的显示状态
            $('.tab-label, .tab').removeClass('active');
            // 添加激活状态到点击的标签和对应的内容
            $(this).addClass('active');
            $('#' + $(this).attr('for')).addClass('active');
        });
    });
</script>

<script>
    $(document).ready(function() {
        $('input').prop('readonly', 'readonly'); // 或者使用 attr('readonly', 'readonly')
        $('select').attr('disabled', 'disabled');
        $('#shenhe_yijian').prop('readonly', false);
        $('#feiyong_qita').prop('readonly', false);

    });
</script>
<script>
    //暂存
    function zancun() {
        //提交数据
        var formData = $("#add-form").serialize();
        $.ajax({
            type:"post",
            dataType:'json',
            url:"{:url('lists/shenhes/tuihui')}",
            data:formData,
            success:function(res){
                console.log(res);
                if (res.code == 1) {
                    layer.msg(res.msg,{time:2000},function(){
                        layer.closeAll()
                        parent.layer.closeAll();
                        parent.$("#table").bootstrapTable('refresh', {});
                    });
                } else {
                    layer.msg(res.msg);
                }
            }
        });
    }
    function ajaxPost() {
        $('#myModal_shenhe').modal();

    }
    // 	改变事件
    $(function(){
        $('input[name="shenhe_radio"]').change(function(){
            console.log(this.value)
            // if(this.value==3){
            //     $("#qita-fei").show()
            //     $("#jingfei").hide()
            //     $("#quanfei").hide()
            // }else if(this.value==2){
            //     $("#jingfei").show()
            //     $("#quanfei").hide()
            //     $("#qita-fei").hide()
            // }else if(this.value==1){
            //     $("#jingfei").hide()
            //     $("#quanfei").show()
            //     $("#qita-fei").hide()
            // }
            if(this.value==2){
                $("#qita-fei").show()
                $("#jingfei").hide()
                $("#quanfei").hide()
            }else if(this.value==1){
                $("#jingfei").hide()
                $("#quanfei").show()
                $("#qita-fei").hide()
            }
        })
    })
    function shenhe_tijiao(){
        console.log(1111)
        var value = $('input[name="shenhe_radio"]:checked').val();
        console.log('value',value)
        console.log($("#feiyong_qita").val())
        var formData = $("#add-form").serialize();
        if(!value){
            layer.alert('请选择缴费类型')
        }else{
            if(value == 2){
                // 其他费用
                var qitaval=$("#feiyong_qita").val()
                if(!qitaval){
                    layer.alert('请填写费用');return false;
                }
                formData = formData +'&feiyong_type='+value + '&feiyong_qita='+qitaval
            }else{
                formData = formData +'&feiyong_type='+value
            }	    		//提交数据
            $.ajax({
                type:"post",
                dataType:'json',
                url:"{:url('lists/shenhes/zuihou')}",
                data:formData,
                success:function(res){
                    console.log(res);
                    if (res.code == 1) {
                        layer.msg(res.msg,{time:2000},function(){
                            layer.closeAll()
                            parent.layer.closeAll();
                            parent.$("#table").bootstrapTable('refresh', {});
                        });
                    } else {
                        layer.msg(res.msg);
                    }
                }
            });
        }

    }
    $(function(){
        if($("#c-chexing").val()=='二吨至五吨货车' || $("#c-chexing").val()=='五吨至十吨货车' || $("#c-chexing").val()=='十吨以上货车'|| $("#c-chexing").val()=='挂车'){
            var value='货车'
        }else if($("#c-chexing").val() == '6座以下' || $("#c-chexing").val() == '6-10座'){
            var value='家庭自用车'
        }else{
            var value=$("#c-chexing").val()
        }
        cc1(value)

    })
    function cc1(value){
        var zuzhi_id=$("#yw_class").val()
        console.log('zuzhi_id',zuzhi_id)
        $.ajax({
            type: 'post',
            url: "{:url('lists/one/select')}",//发送路径
            data: {
                zuzhi_id:zuzhi_id,
                type:value
            },//发送的数据
            dataType: 'json',
            async: false,//是否异步
            success: function (data) {
                var html='<option >请选择NCD</option>';
                for(var i = 0;i<data.data.length;i++){
                    console.log('ncd',data)
                    if(data.data[i].ncd == '{$row.ncd}'){
                        html += '<option value="'+data.data[i].zhekou+','+data.data[i].ncd+','+data.data[i].feiyong+'" selected>'+data.data[i].ncd+'</option>';
                    }else{
                        html += '<option value="'+data.data[i].zhekou+','+data.data[i].ncd+','+data.data[i].feiyong+'">'+data.data[i].ncd+'</option>';
                    }

                }
                $("#ncd").html(html)
            }
        })
    }
</script>